package vista;

import org.uqbar.arena.windows.WindowOwner;

public class AgregarRestriccionWindow extends AgregarAbstractExcepcionWindow {

	private static final long serialVersionUID = 1L;

	public AgregarRestriccionWindow(WindowOwner owner) {
		super(owner);
		this.setTitle("Agregar restriccion");
	}

	@Override
	public void accept() {
		this.getModelObject().getEmpleadoElegido().agregarRestriccion(this.getModelObject().getFechaExcepcion(), this.getModelObject().getDescripcion());
		super.accept();
	}

}
